<?php
/**
 * 服务器PHP状态监控
 *
 * @author 苏宁 <snsnky@126.com>
 *
 * $Id$
 */

header('Content-Type: text/html; charset=utf-8');

if ($_GET['debug'] == 1) {
    echo "<pre style=\"font-size:12px;font-family:Verdana;line-height:1.5\">";
    echo "服务器时间:", date("Y-m-d H:i:s");
    echo "<h1>GET</h1>";
    print_r($_GET);
    echo "<h1>POST</h1>";
    print_r($_POST);
    echo "<h1>FILES</h1>";
    print_r($_FILES);
    echo "<h1>COOKIE</h1>";
    print_r($_COOKIE);
    echo "</pre>";
}
if ($_GET['debug'] == 'phper') {
    // 含敏感信息, 此地址仅限内部调试查看, 谢绝公开!
    session_start();
    echo "<pre style=\"font-size:12px;font-family:Verdana;line-height:1.5\">";
    echo '<b style="color:red">含敏感信息, 此地址仅限内部调试查看, 谢绝公开!</b><br/><br/>';
    echo "服务器时间:", date("Y-m-d H:i:s");
    echo "<h1>GET</h1>";
    print_r($_GET);
    echo "<h1>POST</h1>";
    print_r($_POST);
    echo "<h1>FILES</h1>";
    print_r($_FILES);
    echo "<h1>COOKIE</h1>";
    print_r($_COOKIE);
    echo "<h1>SERVER</h1>";
    print_r($_SERVER);
    echo "<h1>SESSION</h1>";
    print_r($_SESSION);
    echo "<h1>EXT</h1>";
    print_r(get_loaded_extensions());
    echo "</pre>";

}

echo "ok";
